package com.eshop.modules.product.param;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.eshop.common.web.param.QueryParam;

@ApiModel(value = "YxStoreProductQueryParam对象", description = "商品表查询参数")
public class StoreProductQueryParam extends QueryParam
{
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("类别")
    private String type;
    @ApiModelProperty("分类ID")
    private String sid;
    @ApiModelProperty("是否新品")
    private String news;
    @ApiModelProperty("是否积分兑换商品")
    private Integer isIntegral;
    @ApiModelProperty("价格排序")
    private String priceOrder;
    @ApiModelProperty("销量排序")
    private String salesOrder;
    @ApiModelProperty("关键字")
    private String keyword;
    
    public String getType() {
        return this.type;
    }
    
    public String getSid() {
        return this.sid;
    }
    
    public String getNews() {
        return this.news;
    }
    
    public Integer getIsIntegral() {
        return this.isIntegral;
    }
    
    public String getPriceOrder() {
        return this.priceOrder;
    }
    
    public String getSalesOrder() {
        return this.salesOrder;
    }
    
    public String getKeyword() {
        return this.keyword;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setSid(final String sid) {
        this.sid = sid;
    }
    
    public void setNews(final String news) {
        this.news = news;
    }
    
    public void setIsIntegral(final Integer isIntegral) {
        this.isIntegral = isIntegral;
    }
    
    public void setPriceOrder(final String priceOrder) {
        this.priceOrder = priceOrder;
    }
    
    public void setSalesOrder(final String salesOrder) {
        this.salesOrder = salesOrder;
    }
    
    public void setKeyword(final String keyword) {
        this.keyword = keyword;
    }
    
    public String toString() {
        return "StoreProductQueryParam(type=" + this.getType() + ", sid=" + this.getSid() + ", news=" + this.getNews() + ", isIntegral=" + this.getIsIntegral() + ", priceOrder=" + this.getPriceOrder() + ", salesOrder=" + this.getSalesOrder() + ", keyword=" + this.getKeyword() + ")";
    }
    
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductQueryParam)) {
            return false;
        }
        final StoreProductQueryParam other = (StoreProductQueryParam)o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        final Object this$isIntegral = this.getIsIntegral();
        final Object other$isIntegral = other.getIsIntegral();
        Label_0075: {
            if (this$isIntegral == null) {
                if (other$isIntegral == null) {
                    break Label_0075;
                }
            }
            else if (this$isIntegral.equals(other$isIntegral)) {
                break Label_0075;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0112: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0112;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0112;
            }
            return false;
        }
        final Object this$sid = this.getSid();
        final Object other$sid = other.getSid();
        Label_0149: {
            if (this$sid == null) {
                if (other$sid == null) {
                    break Label_0149;
                }
            }
            else if (this$sid.equals(other$sid)) {
                break Label_0149;
            }
            return false;
        }
        final Object this$news = this.getNews();
        final Object other$news = other.getNews();
        Label_0186: {
            if (this$news == null) {
                if (other$news == null) {
                    break Label_0186;
                }
            }
            else if (this$news.equals(other$news)) {
                break Label_0186;
            }
            return false;
        }
        final Object this$priceOrder = this.getPriceOrder();
        final Object other$priceOrder = other.getPriceOrder();
        Label_0223: {
            if (this$priceOrder == null) {
                if (other$priceOrder == null) {
                    break Label_0223;
                }
            }
            else if (this$priceOrder.equals(other$priceOrder)) {
                break Label_0223;
            }
            return false;
        }
        final Object this$salesOrder = this.getSalesOrder();
        final Object other$salesOrder = other.getSalesOrder();
        Label_0260: {
            if (this$salesOrder == null) {
                if (other$salesOrder == null) {
                    break Label_0260;
                }
            }
            else if (this$salesOrder.equals(other$salesOrder)) {
                break Label_0260;
            }
            return false;
        }
        final Object this$keyword = this.getKeyword();
        final Object other$keyword = other.getKeyword();
        if (this$keyword == null) {
            if (other$keyword == null) {
                return true;
            }
        }
        else if (this$keyword.equals(other$keyword)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductQueryParam;
    }
    
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $isIntegral = this.getIsIntegral();
        result = result * 59 + (($isIntegral == null) ? 43 : $isIntegral.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $sid = this.getSid();
        result = result * 59 + (($sid == null) ? 43 : $sid.hashCode());
        final Object $news = this.getNews();
        result = result * 59 + (($news == null) ? 43 : $news.hashCode());
        final Object $priceOrder = this.getPriceOrder();
        result = result * 59 + (($priceOrder == null) ? 43 : $priceOrder.hashCode());
        final Object $salesOrder = this.getSalesOrder();
        result = result * 59 + (($salesOrder == null) ? 43 : $salesOrder.hashCode());
        final Object $keyword = this.getKeyword();
        result = result * 59 + (($keyword == null) ? 43 : $keyword.hashCode());
        return result;
    }
}
